<template>
  <div class="main" v-if="zfNameflag">
    <iframe src="https://xzz.jxt.zj.gov.cn/szjj2/industry/chemical?auth_code=11" frameborder="0" width="100%" height="2000px"></iframe>
  </div>
</template>
<script>
import dd from 'gdt-jsapi';
export default {
  name: 'diagnosticStatistics',
  data () {
    return {
      zfNameflag: true
    }
  },
  created () {
    dd.getAuthCode({}).then(res =>{
      if (res) {
        let params = {
          applicationFlag: '20',
          authCode: res.auth_code
        }
        this.$http.post(`/home/sys/loginfree/authentication`, params)
          .then(({ data: res }) => {
            console.log('res2:',res);
            this.$store.commit('zfName', res.data.lastName)
            if (res.code !== 0) {
              this.zfNameflag = false
            }
          }).catch(() => {
            this.zfNameflag = false
          })
      }
    }).catch(() => {
      this.zfNameflag = false
    })
  },
  // 调用
  mounted () {
    
  },
  methods: {

  }
}
</script>
<style lang="scss" scoped>

</style>
